package vo;

import po.SalePolicyPO;
import java.io.Serializable;

import exception.InputNotRegularException;

public class SalePolicyVO implements Serializable{
	private static final long serialVersionUID = 4882667259755042244L;
	SalePolicyPO spPO;
	
	public SalePolicyVO(){
		super();
	}
	
	public SalePolicyVO(double r) throws InputNotRegularException{
		spPO=new SalePolicyPO(r);
		System.out.print(this.spPO.getRate());
	}
	
	public SalePolicyVO(SalePolicyPO po){
		this.spPO=po;
	}
	
	public SalePolicyPO getSalePolicyPO(){
		return this.spPO;
	}
	
	public int getPoints(double expense){
		System.out.print(this.spPO.getRate());
		return this.spPO.getPoints(expense);
	}
}
